package com.founder.android.util;

import android.util.Log;

public class Logger {
	
	private String tag;
	
	private Logger(String tag) {
		this.tag =  tag;
	}

	public static Logger getLogger(String tag) {
		return new Logger(tag);
	}
	
	public static Logger getLogger(Class cls) {
		return new Logger(cls.getName());
	}
	
	public boolean isDebugEnabled() {
		return true;
	}
	
	public void error(String msg) {
		Log.e(tag, msg);
	}
	
	public void error(String msg, Throwable throwable) {
		Log.e(tag, msg, throwable);
	}
	
	public void error(Exception e, Throwable throwable) {
		Log.e(tag, e.getMessage(), throwable);
	}
	
	public void warn(String msg) {
		Log.w(tag, msg);
	}
	
	public void warn(String msg, Throwable throwable) {
		Log.w(tag, msg, throwable);
	}
	
	public void info(String msg) {
		Log.i(tag, msg);
	}
	
	public void debug(String msg) {
		Log.d(tag, msg);
	}
	
	
	
}
